<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>NeuronSquareMesh2D (Apache Commons Math 3.6.1 API)</title>
<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="NeuronSquareMesh2D (Apache Commons Math 3.6.1 API)";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/NeuronSquareMesh2D.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><em><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script></em></div>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev Class</li>
<li><a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/twod/NeuronSquareMesh2D.HorizontalDirection.html" title="enum in org.apache.commons.math3.ml.neuralnet.twod"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/apache/commons/math3/ml/neuralnet/twod/NeuronSquareMesh2D.html" target="_top">Frames</a></li>
<li><a href="NeuronSquareMesh2D.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.commons.math3.ml.neuralnet.twod</div>
<h2 title="Class NeuronSquareMesh2D" class="title">Class NeuronSquareMesh2D</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.apache.commons.math3.ml.neuralnet.twod.NeuronSquareMesh2D</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a>&lt;<a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/Neuron.html" title="class in org.apache.commons.math3.ml.neuralnet">Neuron</a>&gt;</dd>
</dl>
<hr>
<br>
<pre>public class <span class="strong">NeuronSquareMesh2D</span>
extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a>&lt;<a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/Neuron.html" title="class in org.apache.commons.math3.ml.neuralnet">Neuron</a>&gt;, <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></pre>
<div class="block">Neural network with the topology of a two-dimensional surface.
 Each neuron defines one surface element.
 <br/>
 This network is primarily intended to represent a
 <a href="http://en.wikipedia.org/wiki/Kohonen">
  Self Organizing Feature Map</a>.</div>
<dl><dt><span class="strong">Since:</span></dt>
  <dd>3.3</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/sofm/package-summary.html"><code>org.apache.commons.math3.ml.neuralnet.sofm</code></a>, 
<a href="../../../../../../../serialized-form.html#org.apache.commons.math3.ml.neuralnet.twod.NeuronSquareMesh2D">Serialized Form</a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested_class_summary">
<!--   -->
</a>
<h3>Nested Class Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/twod/NeuronSquareMesh2D.HorizontalDirection.html" title="enum in org.apache.commons.math3.ml.neuralnet.twod">NeuronSquareMesh2D.HorizontalDirection</a></strong></code>
<div class="block">Horizontal (along row) direction.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/twod/NeuronSquareMesh2D.VerticalDirection.html" title="enum in org.apache.commons.math3.ml.neuralnet.twod">NeuronSquareMesh2D.VerticalDirection</a></strong></code>
<div class="block">Vertical (along column) direction.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/twod/NeuronSquareMesh2D.html#NeuronSquareMesh2D(int,%20boolean,%20int,%20boolean,%20org.apache.commons.math3.ml.neuralnet.SquareNeighbourhood,%20org.apache.commons.math3.ml.neuralnet.FeatureInitializer[])">NeuronSquareMesh2D</a></strong>(int&nbsp;numRows,
                  boolean&nbsp;wrapRowDim,
                  int&nbsp;numCols,
                  boolean&nbsp;wrapColDim,
                  <a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/SquareNeighbourhood.html" title="enum in org.apache.commons.math3.ml.neuralnet">SquareNeighbourhood</a>&nbsp;neighbourhoodType,
                  <a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/FeatureInitializer.html" title="interface in org.apache.commons.math3.ml.neuralnet">FeatureInitializer</a>[]&nbsp;featureInit)</code>
<div class="block">Creates a two-dimensional network composed of square cells:
 Each neuron not located on the border of the mesh has four
 neurons linked to it.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/twod/NeuronSquareMesh2D.html" title="class in org.apache.commons.math3.ml.neuralnet.twod">NeuronSquareMesh2D</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/twod/NeuronSquareMesh2D.html#copy()">copy</a></strong>()</code>
<div class="block">Performs a deep copy of this instance.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/Network.html" title="class in org.apache.commons.math3.ml.neuralnet">Network</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/twod/NeuronSquareMesh2D.html#getNetwork()">getNetwork</a></strong>()</code>
<div class="block">Retrieves the underlying network.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/Neuron.html" title="class in org.apache.commons.math3.ml.neuralnet">Neuron</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/twod/NeuronSquareMesh2D.html#getNeuron(int,%20int)">getNeuron</a></strong>(int&nbsp;i,
         int&nbsp;j)</code>
<div class="block">Retrieves the neuron at location <code>(i, j)</code> in the map.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/Neuron.html" title="class in org.apache.commons.math3.ml.neuralnet">Neuron</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/twod/NeuronSquareMesh2D.html#getNeuron(int,%20int,%20org.apache.commons.math3.ml.neuralnet.twod.NeuronSquareMesh2D.HorizontalDirection,%20org.apache.commons.math3.ml.neuralnet.twod.NeuronSquareMesh2D.VerticalDirection)">getNeuron</a></strong>(int&nbsp;row,
         int&nbsp;col,
         <a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/twod/NeuronSquareMesh2D.HorizontalDirection.html" title="enum in org.apache.commons.math3.ml.neuralnet.twod">NeuronSquareMesh2D.HorizontalDirection</a>&nbsp;alongRowDir,
         <a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/twod/NeuronSquareMesh2D.VerticalDirection.html" title="enum in org.apache.commons.math3.ml.neuralnet.twod">NeuronSquareMesh2D.VerticalDirection</a>&nbsp;alongColDir)</code>
<div class="block">Retrieves the neuron at <code>(location[0], location[1])</code> in the map.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/twod/NeuronSquareMesh2D.html#getNumberOfColumns()">getNumberOfColumns</a></strong>()</code>
<div class="block">Gets the number of neurons in each column of this map.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/twod/NeuronSquareMesh2D.html#getNumberOfRows()">getNumberOfRows</a></strong>()</code>
<div class="block">Gets the number of neurons in each row of this map.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a>&lt;<a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/Neuron.html" title="class in org.apache.commons.math3.ml.neuralnet">Neuron</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/twod/NeuronSquareMesh2D.html#iterator()">iterator</a></strong>()</code></td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="NeuronSquareMesh2D(int, boolean, int, boolean, org.apache.commons.math3.ml.neuralnet.SquareNeighbourhood, org.apache.commons.math3.ml.neuralnet.FeatureInitializer[])">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>NeuronSquareMesh2D</h4>
<pre>public&nbsp;NeuronSquareMesh2D(int&nbsp;numRows,
                  boolean&nbsp;wrapRowDim,
                  int&nbsp;numCols,
                  boolean&nbsp;wrapColDim,
                  <a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/SquareNeighbourhood.html" title="enum in org.apache.commons.math3.ml.neuralnet">SquareNeighbourhood</a>&nbsp;neighbourhoodType,
                  <a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/FeatureInitializer.html" title="interface in org.apache.commons.math3.ml.neuralnet">FeatureInitializer</a>[]&nbsp;featureInit)</pre>
<div class="block">Creates a two-dimensional network composed of square cells:
 Each neuron not located on the border of the mesh has four
 neurons linked to it.
 <br/>
 The links are bi-directional.
 <br/>
 The topology of the network can also be a cylinder (if one
 of the dimensions is wrapped) or a torus (if both dimensions
 are wrapped).</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>numRows</code> - Number of neurons in the first dimension.</dd><dd><code>wrapRowDim</code> - Whether to wrap the first dimension (i.e the first
 and last neurons will be linked together).</dd><dd><code>numCols</code> - Number of neurons in the second dimension.</dd><dd><code>wrapColDim</code> - Whether to wrap the second dimension (i.e the first
 and last neurons will be linked together).</dd><dd><code>neighbourhoodType</code> - Neighbourhood type.</dd><dd><code>featureInit</code> - Array of functions that will initialize the
 corresponding element of the features set of each newly created
 neuron. In particular, the size of this array defines the size of
 feature set.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../../../org/apache/commons/math3/exception/NumberIsTooSmallException.html" title="class in org.apache.commons.math3.exception">NumberIsTooSmallException</a></code> - if <code>numRows &lt; 2</code> or
 <code>numCols &lt; 2</code>.</dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="copy()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>copy</h4>
<pre>public&nbsp;<a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/twod/NeuronSquareMesh2D.html" title="class in org.apache.commons.math3.ml.neuralnet.twod">NeuronSquareMesh2D</a>&nbsp;copy()</pre>
<div class="block">Performs a deep copy of this instance.
 Upon return, the copied and original instances will be independent:
 Updating one will not affect the other.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a new instance with the same state as this instance.</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.6</dd></dl>
</li>
</ul>
<a name="iterator()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>iterator</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a>&lt;<a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/Neuron.html" title="class in org.apache.commons.math3.ml.neuralnet">Neuron</a>&gt;&nbsp;iterator()</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Iterable.html?is-external=true#iterator()" title="class or interface in java.lang">iterator</a></code>&nbsp;in interface&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a>&lt;<a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/Neuron.html" title="class in org.apache.commons.math3.ml.neuralnet">Neuron</a>&gt;</code></dd>
<dt><span class="strong">Since:</span></dt>
  <dd>3.6</dd></dl>
</li>
</ul>
<a name="getNetwork()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNetwork</h4>
<pre>public&nbsp;<a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/Network.html" title="class in org.apache.commons.math3.ml.neuralnet">Network</a>&nbsp;getNetwork()</pre>
<div class="block">Retrieves the underlying network.
 A reference is returned (enabling, for example, the network to be
 trained).
 This also implies that calling methods that modify the <a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/Network.html" title="class in org.apache.commons.math3.ml.neuralnet"><code>Network</code></a>
 topology may cause this class to become inconsistent.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the network.</dd></dl>
</li>
</ul>
<a name="getNumberOfRows()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNumberOfRows</h4>
<pre>public&nbsp;int&nbsp;getNumberOfRows()</pre>
<div class="block">Gets the number of neurons in each row of this map.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the number of rows.</dd></dl>
</li>
</ul>
<a name="getNumberOfColumns()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNumberOfColumns</h4>
<pre>public&nbsp;int&nbsp;getNumberOfColumns()</pre>
<div class="block">Gets the number of neurons in each column of this map.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the number of column.</dd></dl>
</li>
</ul>
<a name="getNeuron(int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNeuron</h4>
<pre>public&nbsp;<a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/Neuron.html" title="class in org.apache.commons.math3.ml.neuralnet">Neuron</a>&nbsp;getNeuron(int&nbsp;i,
               int&nbsp;j)</pre>
<div class="block">Retrieves the neuron at location <code>(i, j)</code> in the map.
 The neuron at position <code>(0, 0)</code> is located at the upper-left
 corner of the map.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>i</code> - Row index.</dd><dd><code>j</code> - Column index.</dd>
<dt><span class="strong">Returns:</span></dt><dd>the neuron at <code>(i, j)</code>.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../../../org/apache/commons/math3/exception/OutOfRangeException.html" title="class in org.apache.commons.math3.exception">OutOfRangeException</a></code> - if <code>i</code> or <code>j</code> is
 out of range.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/twod/NeuronSquareMesh2D.html#getNeuron(int,%20int,%20org.apache.commons.math3.ml.neuralnet.twod.NeuronSquareMesh2D.HorizontalDirection,%20org.apache.commons.math3.ml.neuralnet.twod.NeuronSquareMesh2D.VerticalDirection)"><code>getNeuron(int,int,HorizontalDirection,VerticalDirection)</code></a></dd></dl>
</li>
</ul>
<a name="getNeuron(int, int, org.apache.commons.math3.ml.neuralnet.twod.NeuronSquareMesh2D.HorizontalDirection, org.apache.commons.math3.ml.neuralnet.twod.NeuronSquareMesh2D.VerticalDirection)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getNeuron</h4>
<pre>public&nbsp;<a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/Neuron.html" title="class in org.apache.commons.math3.ml.neuralnet">Neuron</a>&nbsp;getNeuron(int&nbsp;row,
               int&nbsp;col,
               <a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/twod/NeuronSquareMesh2D.HorizontalDirection.html" title="enum in org.apache.commons.math3.ml.neuralnet.twod">NeuronSquareMesh2D.HorizontalDirection</a>&nbsp;alongRowDir,
               <a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/twod/NeuronSquareMesh2D.VerticalDirection.html" title="enum in org.apache.commons.math3.ml.neuralnet.twod">NeuronSquareMesh2D.VerticalDirection</a>&nbsp;alongColDir)</pre>
<div class="block">Retrieves the neuron at <code>(location[0], location[1])</code> in the map.
 The neuron at position <code>(0, 0)</code> is located at the upper-left
 corner of the map.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>row</code> - Row index.</dd><dd><code>col</code> - Column index.</dd><dd><code>alongRowDir</code> - Direction along the given <code>row</code> (i.e. an
 offset will be added to the given <em>column</em> index.</dd><dd><code>alongColDir</code> - Direction along the given <code>col</code> (i.e. an
 offset will be added to the given <em>row</em> index.</dd>
<dt><span class="strong">Returns:</span></dt><dd>the neuron at the requested location, or <code>null</code> if
 the location is not on the map.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/twod/NeuronSquareMesh2D.html#getNeuron(int,%20int)"><code>getNeuron(int,int)</code></a></dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/NeuronSquareMesh2D.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><em><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script></em></div>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev Class</li>
<li><a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/twod/NeuronSquareMesh2D.HorizontalDirection.html" title="enum in org.apache.commons.math3.ml.neuralnet.twod"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/apache/commons/math3/ml/neuralnet/twod/NeuronSquareMesh2D.html" target="_top">Frames</a></li>
<li><a href="NeuronSquareMesh2D.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2003&#x2013;2016 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</body>
</html>
